namespace Learnive.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Cifjer : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Cijfers",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        Datum = c.String(),
                        Eindresultaat = c.String(),
                        Studiepunten = c.Int(nullable: false),
                        vakID = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.ID)
                .ForeignKey("dbo.Vakjes", t => t.vakID, cascadeDelete: true)
                .Index(t => t.vakID);
            
        }
        
        public override void Down()
        {
            DropIndex("dbo.Cijfers", new[] { "vakID" });
            DropForeignKey("dbo.Cijfers", "vakID", "dbo.Vakjes");
            DropTable("dbo.Cijfers");
        }
    }
}
